from ronglian_sms_sdk import SmsSDK

accId = '2c94811c9860a9c40198e016abbc1494'
accToken = '2641d3b9c1f04945a734e2e99851cd12'
appId = '2c94811c9860a9c40198e016ad31149b'


class SmsCode:
    def send(self, phone, code):
        sdk = SmsSDK(accId, accToken, appId)
        tid = "1"
        mobile = phone
        datas = (code,)
        resp = sdk.sendMessage(tid, mobile, datas)
        return resp


sms = SmsCode()
sms.send('13811111111', '1234')
